package com.example.springinit.bean;

import java.io.Serializable;

public class ResultDto<T> implements Serializable {

	private static final long serialVersionUID = -4999241212328665075L;
	public static final boolean RESULT_SUCCESS = true;
	public static final boolean RESULT_FAIL = false;

	private boolean result=true;
	private long errCode;


	private String errMsg;
	private T object;

	public void setIntResult(int intResult){
		if (intResult>0){
			result = true;
		}else{
			result = false;
		}
	}

	public boolean isSuccess() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public boolean isResult() {
		return this.result;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

}
